package chapter22.homework04;

public class ConcreteObserver implements Observer{

    String name;
    public ConcreteObserver(String name){
        this.name = name;
    }
    @Override
    public String getName() {
        return name;
    }

    @Override
    public void update() {
        System.out.println("购买的股票有变化....");
    }

    @Override
    public void setName(String name) {
        this.name = name;
    }
}
